package com.example.demo.service;

import com.example.demo.model.Result;
import com.example.demo.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;

/**
* @author Lenovo
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-03-14 16:04:49
*/
public interface UserService extends IService<User> {
    /**
     * @param userAccount   用户账号
     * @param password      用户密码
     * @param checkPassword 密码校验
     * @return long
     */
    Result<User> userRegister(String userAccount, String password, String checkPassword);

    /**
     * @param userAccount 用户账号
     * @param password    用户密码
     * @return User
     */
    Result<User> doLogin(String userAccount, String password, HttpServletRequest request);
}
